<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */

function getUserDataFromDB($id){
	$query = $GLOBALS['db']->query("SELECT * FROM vision_users WHERE id = '".intval($id)."'");
	if($query->num_rows != 1){
		return false;
	}
	else{
		$user = $query->fetch_array();
		if(is_array($user)){
		    return $user;
		    }
	}
}

?>